package com.dongfa.learn_0913;


public class LearnCode1005 {
    public LearnCode1005(int a, int b) {
    }

    public LearnCode1005(int a){
        System.out.println(a);
    }
    public void createNewArr(int[] arr){
        arr = new int[]{11, 22, 33, 44, 55};
    }
    public void createNewArr2(int[] arr){
        for (int i=0; i < arr.length; i++) {
            arr[i] += 10;
        }
    }
    public static void main(String[] args) {
        int[] arr = {1, 22, 3, 4, 5};
        int a = 10;
        LearnCode1005 today = new LearnCode1005(a);
        today.createNewArr(arr);
        for (int i : arr) {
            System.out.println(i);
        }
        today.createNewArr2(arr);
        for (int i : arr) {
            System.out.println(i);
        }
    }
}
